-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[base-ui][NumberInput] Remove inputId
and inputRef
types from NumberInput
component
#40425
Conversation
Netlify deploy previewhttps://deploy-preview-40425--material-ui.netlify.app/ Bundle size report |
packages/mui-base/src/Unstable_NumberInput/NumberInput.spec.tsx
Outdated
Show resolved
Hide resolved
packages/mui-base/src/Unstable_NumberInput/NumberInput.spec.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Even the inputRef
isn't documented for NumberInput
. Do you think it should be available on NumberInput
? I believe it should.
I don't think https://codesandbox.io/p/sandbox/funny-knuth-kc8h4d?file=%2Fsrc%2FDemo.tsx%3A17%2C17-17%2C29
|
7bdcf70
to
8ea34d2
Compare
It's currently not available, but shouldn't we support it by adding the implementation? Although it's supported in As for In essence, all the props for If you agree, these changes can be done in a separate PR. If implemented in a separate PR, we would need to revert 8ea34d2 here. Alternatively, you can include all these changes in this PR, altering its purpose altogether. |
I agree with you on providing
I'm not sure if above hypothesis is true, because if check https://mui.com/base-ui/react-button/hooks-api/ and https://mui.com/base-ui/react-button/components-api/ props, there are multiple props which are not common in |
Alright, I see. Then this PR looks good. |
inputId
and inputRef
types from NumberInput
component
inputId
is not a valid prop forNumberInput
component (check here) butNumberInput
component type was allowing it. This PR removes prop from type